package com.fpd.constant;

import com.fpd.model.vo.ResultVO;

public interface SystemConstant {

	String successCode = "000";// 成功返回此code

	String BUSINESS_FAIL_CODE = "002";
	
	String REDIS_USER_IS_NULL = "无用户信息，请重新登录";

	String successMessage = "成功";

	String errorMessage = "失败";

	String errorCode = ResultVO.ERROR_CODE;
	
	/**
	     * 用户登录名验证规则正则表达式
	     * 以字母、数字开头的5-20位字符，只能包含字母、数字、下划线'_'
     */
     String LOGIN_NAME_REGEX = "^[a-zA-Z0-9][a-zA-Z0-9_]{4,19}$";

	/**
	 * Redis中存储的用户对象信息字段的key值
	 */
	String REDIS_USER_INFO_KEY = "userInfo:";
	
	String MAP_USER_INFO_KEY = "userInfo";

	String MAP_PERMISSION_LIST_KEY = "permissionList";
}
